package com.misty.temple_method;

public class HummerH1Model extends HummerModel {
    private boolean isAlarm = false;

    public void setAlarm(boolean alarm) {
        this.isAlarm = alarm;
    }

    @Override
    protected void start() {
        System.out.println("模型车H1 Start");
    }

    @Override
    protected void stop() {
        System.out.println("模型车H1  stop");
    }


    @Override
    protected void alarm() {
        System.out.println("模型车H1  alarm");
    }

    @Override
    protected void engineBoom() {
        System.out.println("模型车H1 engineBoom");
    }

    @Override
    protected boolean isAlarm() {
        return this.isAlarm;
    }

}
